<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>病假管理</title>
<script language=JavaScript1.2 src="${ctx}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<%@ include file="/common/meta.jsp" %>
<link href="${ctx}/css/yui.css" type="text/css" rel="stylesheet"/>
<link href="${ctx}/css/style.css" type="text/css" rel="stylesheet"/>
<script src="${ctx}/js/table.js" type="text/javascript"></script>
<script src="${ctx}/js/clinic/sickleave.js" type="text/javascript"></script>
<style type="text/css">
#customers
  {
  font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
  border-collapse:collapse;
  }

#customers td, #customers th 
  {
  font-size:1em;
  border:1px solid #98bf21;
  padding:3px 7px 2px 7px;
  }

#customers th 
  {
  font-size:1.1em;
  text-align:left;
  padding-top:5px;
  padding-bottom:4px;
  text-align:center;
  background-color:#A7C942;
  color:#ffffff;
  }

#customers tr.alt td 
  {
  color:#000000;
  background-color:#EAF2D3;
  }
</style>

</head>
<body>
<table width="700" class="noborder">
	<tr>
	<td align="left" ><div style="font-family:Arial;font-size:15px;font-weight:bold;font-style:normal">当前位置：校园诊所--病假管理</div> </td>
	</tr>
</table>
<form id="sickLeaveMainForm" action="leave.action" method="get">
    <input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
	<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
	<input type="hidden" name="page.order" id="order" value="${page.order}"/>
	<input type="hidden" name="id" id="id" value="${id}"/>
	<div id="filter">
    <table width="700" class="noborder">
         <tr>
	         <td width="70" align="left" valign="middle">工&nbsp;/&nbsp;学号:</td>
	         <td width="250" align="left" valign="middle"><input type="text" name="studentID" value="${studentID}" size="20" size="20"/></td>
	         <td width="210" align="right" valign="middle">姓&nbsp;&nbsp;&nbsp;名:</td>
	         <td width="170" align="right" valign="middle"><input type="text" name="name" value="${name}" size="20"/></td>
	    </tr>
	    <tr>
	         <td width="70" align="left" valign="middle">申请日期:</td>
	         <td width="250" align="left" valign="middle"><input type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="readonly" id="d12" size="20" name="dateStart" value="<s:date name='dateStart' format='yyyy-MM-dd'/>" size="20"/></td>
	         <td width="210" align="right" valign="middle">班主任:</td>
	         <td width="170" align="right" valign="middle"><input type="text" name="teacher" value="${teacher}" size="20"/></td>
	    </tr>
        <tr>
		     <td align="right" colspan="4" valign="middle"><input type="button" value="&nbsp;&nbsp;查&nbsp;询&nbsp;&nbsp;" onclick="searchSickLeave();"/></td>
	    </tr>
    </table>
    </div>
    <p></p>
    <p></p>
    <div id="content">
		<table width="700" border="1" id="customers">
			<tr>
				<th>序号</th>
				<th>姓名</th>
				<th>工号</th>
				<th>请假日期</th>
				<th>结束日期</th>
				<th>请假原因</th>
				<th>操作</th>
			</tr>
			<s:iterator value="page.result">
					<tr class="alt" >
						<td>${id}</td>
						<td>${clinic.patient.name}</td>
						<td>${clinic.patient.idNumber}</td>
						<td>${startDate}</td>
						<td>${endDate}</td>
						<td>${comments}&nbsp;</td>
						<td>
							<a href="leave!input.action?id=${id}">修改</a>&nbsp;
							<a href="javascript:deleteSickLeaves(${id})">删除</a>
						</td>
					</tr>
				</s:iterator>
		</table>
	</div>
	<p></p>
	<table width="700" class="noborder">
		  <tr>
			    <td align="right" >第${page.pageNo}页, 共${page.totalPages}页
					<a href="javascript:sickLeavejumpPage(1)">首页</a>
					<s:if test="page.hasPre"><a href="javascript:sickLeavejumpPage(${page.prePage})">上一页</a></s:if>
					<s:if test="page.hasNext"><a href="javascript:sickLeavejumpPage(${page.nextPage})">下一页</a></s:if>
					<a href="javascript:sickLeavejumpPage(${page.totalPages})">末页</a>
				</td>
		  </tr>
	</table>  
    
</form>
</body>
</html>